package cn.stylefeng.guns.modular.basic.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * 备货区表
 */
@TableName("basic_stockuparea")
@Data
public class BasicStockuparea implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 所属仓库id
     */
    @TableField("warehouseid")
    private Long warehouseid;

    /**
     * 所属仓库
     */
    @TableField("warehousename")
    private String warehousename;

    /**
     * 仓库编号
     */
    @TableField("warehousenumber")
    private String warehousenumber;

    /**
     * 备货区编号
     */
    @TableField("areanumber")
    private String areanumber;

    /**
     * 面积
     */
    @TableField("area_measure")
    private String areaMeasure;

    /**
     * 库区状态
     */
    @TableField("area_state")
    private String areaState;

    /**
     * 交付客户id
     */
    @TableField("deliver_id")
    private Long deliverId;

    /**
     * 备注
     */
    @TableField("area_notes")
    private String areaNotes;

    /**
     * 乐观锁
     */
    @TableField("version")
    private Integer version;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 创建用户
     */
    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    /**
     * 修改用户
     */
    @TableField(value = "update_user", fill = FieldFill.UPDATE)
    private Long updateUser;

    @Override
    public String toString() {
        return "BasicStockuparea{" +
        "id=" + id +
        ", warehouseid=" + warehouseid +
        ", warehousename=" + warehousename +
        ", warehousenumber=" + warehousenumber +
        ", areanumber=" + areanumber +
        ", areaMeasure=" + areaMeasure +
        ", areaState=" + areaState +
        ", deliverId=" + deliverId +
        ", areaNotes=" + areaNotes +
        ", version=" + version +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", createUser=" + createUser +
        ", updateUser=" + updateUser +
        "}";
    }
}
